package com.ccnf.model.entity;

import com.ccnf.model.enums.UnionRoleEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author developer
 * @since 2019-03-15
 */
@Data
@ApiModel(value="InvitationUser对象", description="")
public class InvitationUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @JsonProperty("shareId")
    private Long id;

    @ApiModelProperty(value = "邀请函ID")
    @JsonIgnore
    private Long invitationId;

    @ApiModelProperty(value = "用户ID")
    @JsonIgnore
    private Long userId;

    @ApiModelProperty("联合类型")
    @JsonIgnore
    private UnionRoleEnum unionRole;

    @ApiModelProperty(value = "浏览时间")
    private Long browseTime;

    @ApiModelProperty(value = "登记时间")
    private Long registerTime;

    @ApiModelProperty(value = "是否收藏")
    @JsonProperty(defaultValue = "0")
    private Integer isCollect;

    @ApiModelProperty(value = "收藏时间")
    private Long collectTime;

    @ApiModelProperty(value = "浏览数")
    private Integer browseNum;

    @ApiModelProperty(value = "转发数")
    private Integer forwardNum;

    @ApiModelProperty(value = "分享出去后的点击累计次数")
    private Integer clickCount;
}
